/*
 * BSM6.0
 *
 * Copyright 2012-2013 (C) SINODATA CO., LTD. All Rights Reserved.
 */
package com.sinodata.bsm.center.dao;

import java.util.List;

import com.sinodata.bsm.common.vo.ProcessRule;
import com.sinodata.bsm.common.vo.ProcessEventTypeRule;
import com.sinodata.bsm.common.vo.ProcessExcludeResRule;

/**
 * <p>
 * Description: 
 * </p>
 *
 * @author dongyushi
 * @version 1.0

 * <p>
 * History: 
 *
 * Date                     Author         Version     Description
 * ---------------------------------------------------------------------------------
 * 2013-3-13 上午11:04:36          dongyushi        1.0         To create
 * </p>
 *
 * @since 
 * @see     
 */
public interface ProcessRuleDao {

    public List<ProcessRule> findAllByRes(Long resId);

    public void batchDeleteWorkOrderEventType(Long[] ids);

    public int getByNameAndResId(Long resId, String name);

    public void deleteWorkOrderExcludeRes(Long workOrderId);

    public void deleteWorkOrderExcludeResById(Long id);

    public void deleteWorkOrderEventType(Long workOrderId);

    public List<ProcessExcludeResRule> getWorkOrderExcludeResByWorkOrderId(Long workOrderId);

    public List<ProcessEventTypeRule> getWorkOrderEventTypeByWorkOrderId(Long workOrderId);
}
